#pragma once

#include "Defines.hpp"

class EventHandlerUnknownConnection : public SocketEventHandler
{
public:
	EventHandlerUnknownConnection();
	virtual ~EventHandlerUnknownConnection();

	virtual void onDisposed();
	virtual void onDisconnected();
	virtual void onConnected();
	virtual void onMessage(Message& msg);

private:
	void onFromAnyRequestWorldConfig(Message& msg);
	void onFromAnyDeclareRole(Message& msg);
	void onFromDaemonNodeAreYouAlive(Message& msg);
	void onFromDaemonRequestNodeInitialized(Message& msg);
	void onFromAnyRequestTaskStart(Message& msg);
	void onFromAnyRequestTimeRun(Message& msg);
	void onFromAnyRequestTaskEnd(Message& msg);

private:
	MessageRouter mMessageRouter;
};
